package com.buba.system.service.impl;

import com.buba.system.pojo.SystemMenu;
import com.buba.system.pojo.SystemUserRole;
import com.buba.system.service.MenuService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Set;

@Service("menuServiceImpl")
public class MenuServiceImpl implements MenuService{
    @DubboReference //@Reference 用在消费端，表明使用的是服务端的什么服务
    private MenuService menuService;


    @Override
    public Collection<? extends String> selRoleByRoleName(String roleName) {
        return menuService.selRoleByRoleName(roleName);
    }

    @Override
    public List<SystemMenu> selMenu() {
        return menuService.selMenu();
    }

    @Override
    public List<SystemMenu> selMenuById(Integer menuId) {
        return menuService.selMenuById(menuId);
    }
}
